From: Florian Müllner Date: Fri, 1 Sep 2023 12:33:24 +0000 (+0200) Subject: tools/toolbox: Set up first toolbox as default X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~271 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b739375bbda3530545b19f1ce9ddf5766e8b224f;p=gnome-shell.git tools/toolbox: Set up first toolbox as default Setting up more than one gnome-shell toolbox is uncommon, and users shouldn't have to specify --set-default for other tools to pick the right default. It would be possible to detect the number of containers that were created from the shell toolbox image, but the far easier option is to just set up the first container as default. Part-of: --- diff --git a/tools/toolbox/create-toolbox.sh b/tools/toolbox/create-toolbox.sh index 1b2ab9bbd..ba240c537 100755 --- a/tools/toolbox/create-toolbox.sh +++ b/tools/toolbox/create-toolbox.sh @@ -104,6 +104,9 @@ unset TEMP NAME=$DEFAULT_NAME LOCALES=() +# set up first toolbox as default +[ ! -f $CONFIG_FILE ] && SET_DEFAULT=1 + while true; do case "$1" in -n|--name)